/**
 * 
 */
package ar.rhok.yerbus.core.services.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ar.rhok.yerbus.core.domain.Request;
import ar.rhok.yerbus.core.domain.User;
import ar.rhok.yerbus.core.services.RequestPublisher;

/**
 * @author Mauro Monti
 *
 */
@Service
@Transactional
public class RequestPublisherMockImpl implements RequestPublisher {

	/* (non-Javadoc)
	 * @see ar.rhok.yerbus.core.services.RequestPublisher#publishRequest(ar.rhok.yerbus.core.domain.Request)
	 */
	@Override
	public void publishRequest(Request pRequest) {
		System.out.println(String.format("Publicando request: %s", pRequest.getDescription()));
	}

	/* (non-Javadoc)
	 * @see ar.rhok.yerbus.core.services.RequestPublisher#publishFeedBack(ar.rhok.yerbus.core.domain.Request, ar.rhok.yerbus.core.domain.User)
	 */
	@Override
	public void publishFeedBack(Request pRequest, User pUser) {
		System.out.println(String.format("Publicando Feedback Request: %s", pRequest.getFeedbackMessage()));
	}

}
